# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=stomper
pkgver=63.0a4c397
pkgrel=4
pkgdesc='A transport neutral client implementation of the STOMP protocol.'
arch=('any')
url='http://code.google.com/p/stomper/'
license=('APACHE')
depends=('python2' 'python-twisted')
makedepends=('git' 'python2-distribute')
source=("git+https://github.com/oisinmulvihill/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  python2 setup.py install --root="$pkgdir" --prefix=/usr

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.rst
}

